var name = "window";

var person = {
  name: "person",
  sayName: function () {
    console.log(this.name);
  },
};

function sayName() {
  var sss = person.sayName;
  sss(); // window: 独立函数调用
  person.sayName(); // person: 隐式调用
  person.sayName(); // person: 隐式调用
  (b = person.sayName)(); // window: 赋值表达式(独立函数调用)
}

sayName();

var person2 = {
  name: "person2",
  getName: function () {
    function getName1() {
      console.log(this);
    }
    getName1();
    return getName1;
  },
};

var s2 = person2.getName()(); // window
